<template>
  <div>
    <ul>
      <li v-for="scm in scmhdata" :key="scm.id">
        <img :src="scm.img" />
        <p>{{ scm.text }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
// import axios from 'axios';
export default {
  name: "Manhuashoucang",
  data() {
    return {
      scms: [],
    };
  },
  // created(){
  //     axios({
  //         url:"/scmh"
  //     })
  //     .then(res=>this.scms=res.data)
  // }
  created() {
    this.$store.dispatch("LINK_SCMH_DATA","/my/scmh")
    },
    computed:{
      scmhdata(){
        return this.$store.state.MyScmhM.scmh
      }
   }


};
</script>

<style scoped>
ul {
  width: 100%;
  background-color: white;
}
li {
  
  display: flex;
  margin-bottom: 0.1rem;
}
li img {
  margin-left: 0.3rem;
  width: 1.2rem;
  height: 0.9rem;
}
li p {
  margin-left: 0.1rem;
  margin-top: 0.3rem;
}
</style>